package com.tjy.bean;

public class MobilePhone {
    private Long id;
    private String img;
    private String mobileName;
    private Long mobileTypeId;
    private Integer price;
    private MobileType mobileType;

    public MobilePhone() {
    }

    public MobilePhone(Long id, String img, String mobileName, Long mobileTypeId, Integer price, MobileType mobileType) {
        this.id = id;
        this.img = img;
        this.mobileName = mobileName;
        this.mobileTypeId = mobileTypeId;
        this.price = price;
        this.mobileType = mobileType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getMobileName() {
        return mobileName;
    }

    public void setMobileName(String mobileName) {
        this.mobileName = mobileName;
    }

    public Long getMobileTypeId() {
        return mobileTypeId;
    }

    public void setMobileTypeId(Long mobileTypeId) {
        this.mobileTypeId = mobileTypeId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public MobileType getMobileType() {
        return mobileType;
    }

    public void setMobileType(MobileType mobileType) {
        this.mobileType = mobileType;
    }

    @Override
    public String toString() {
        return "MobilePhone{" +
                "id=" + id +
                ", img='" + img + '\'' +
                ", mobileName='" + mobileName + '\'' +
                ", mobileTypeId=" + mobileTypeId +
                ", price=" + price +
                ", mobileType=" + mobileType +
                '}';
    }
}
